package com.house.twohouse.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.house.common.utils.PageUtils;
import com.house.common.utils.Query;

import com.house.twohouse.dao.RentalDao;
import com.house.twohouse.entity.RentalEntity;
import com.house.twohouse.service.RentalService;


@Service("rentalService")
public class RentalServiceImpl extends ServiceImpl<RentalDao, RentalEntity> implements RentalService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RentalEntity> page = this.page(
                new Query<RentalEntity>().getPage(params),
                new QueryWrapper<RentalEntity>()
        );

        return new PageUtils(page);
    }

}